#ifndef H_SOCKET_H
#define H_SOCKET_H

#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <net/ethernet.h>
#include <linux/if_packet.h>
#include <netinet/in.h>

#include "message.h"

class RawSocket
{
    public:
        RawSocket(const char *DEVICE = "eth0");
        message * getMessage(int *);
        bool sendMessage(message *msg);
        int getFileDescriptor();
    private:
        int rs; /* socket */
};

#endif
